<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>搜索页面信息</title>

    <!-- Favicons -->
    <link rel="apple-touch-icon-precomposed" href=""/>
    <link rel="shortcut icon" href=""/>

    <!-- Bootstrap -->
    <link href="${base}/dist/vendors/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="${base}/dist/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">

    <!-- Theme Style -->
    <link href="${base}/theme/admin/dist/css/site.css" rel="stylesheet">
    <link href="${base}/theme/admin/dist/css/site.addons.css" rel="stylesheet">
    <link href="${base}/theme/admin/dist/css/skins/skin-blue.css" rel="stylesheet">

    <script type="text/javascript">
        var _MTONS = _MTONS || {};
        _MTONS.BASE_PATH = '${base}';
        _MTONS.LOGIN_TOKEN = '${profile.id}';
    </script>

    <!-- jQuery -->
    <script src="${base}/dist/js/jquery.min.js"></script>
    <script src="${base}/dist/js/plugins.js"></script>
    <!-- Bootstrap -->
    <script src="${base}/dist/vendors/bootstrap/js/bootstrap.min.js"></script>
    <script src='${base}/dist/vendors/jquery-validation/jquery.validate.min.js'></script>
    <script src='${base}/dist/vendors/jquery-validation/additional-methods.js'></script>
    <script src='${base}/dist/vendors/jquery-validation/localization/messages_zh.min.js'></script>
    <script src="${base}/dist/vendors/layer/layer.js"></script>
    <script src="${base}/theme/admin/dist/js/site.js"></script>
    <script src="${base}/theme/admin/dist/js/site.base.js"></script>
</head>

<body>
<div class="box-body">
    <form id="qForm" class="form-inline search-row" action="${base}/question/search">
        <div class="form-group">
            <input type="text" name="kw" class="form-control" value="${kw}"
                   placeholder="请输入关键字">
        </div>
        <button type="submit" class="btn btn-default">查询</button>
    </form>
    <#list results.content as row>
        <div
                style="width: 600px;height: 600px;float: left;border: 1px solid red;margin-left: 20px;margin-top: 20px;">
            标题:
            <div th:utext="${row.title}">
                ${row.title}
            </div>

            内容:
            <div th:utext="${row.content}">
                ${row.content}
            </div>
        </div>
    </#list>
</div>

</body>

</html>
